StartupEvents.registry('item', e => {
    e.create('eou:test_courios')
        .name(itemStack => {
            return Component.ofString("测试饰品").red()
        })
        .maxStackSize(1)
        .tooltip(Text.ofString("这只是一个测试饰品").gold())
        .attachCapability(
            CuriosCapabilityBuilder.CURIOS.itemStack()
                .curioTick((itemStack, slotContext) => {
                    return true
                })
                .onUnequip((itemStack, slotContext) => {

                })
                .modifyAttribute("eou:generic.max_mana", "test_courios", 666, "addition")
                .modifyAttribute("eou:generic.mana_regain_speed", "test_courios", 1, "multiply_base")
                .modifyAttribute("eou:generic.mana_cost_redce", "test_courios", 0.5, "multiply_base")
                .modifyAttribute("eou:generic.cooldown_time_reduce", "test_courios", 0.6, "multiply_base")
                .modifyAttribute("eou:generic.item_skill_damage", "test_courios", 0.5, "multiply_base")
                .modifyAttribute("eou:generic.luck", "test_courios", 100, "addition")
                .modifyAttribute("eou:generic.attack_damage", "test_courios", 0.5, "multiply_base")
                .modifyAttribute("minecraft:generic.max_health", "test_courios", 30, "addition")
        ).tag("curios:curios")
        .rarity(Rarity.Special)


    e.create('eou:magic_bottle')
        .displayName("魔力瓶")
        .maxStackSize(1)
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("eou:generic.item_skill_damage", "magic_flower", 0.1, "multiply_base")
            .modifyAttribute("eou:generic.max_mana", "magic_flower", 25, "addition")
        ).tag("curios:curios")
        .rarity("rare")

    e.create('eou:tank_shield')
        .displayName("坦克之盾")
        .maxStackSize(1)
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.knockback_resistance", "tank_shield", 0.2, "addition")
            .modifyAttribute("minecraft:generic.armor", "tank_shield", 4, "addition")
        ).tag("curios:curios")
        .rarity("uncommon")

    e.create('eou:mining_ring')
        .displayName("采矿戒指")
        .tooltip(Component.ofString("挖掘速度加成独立于急迫").gray())
        .maxStackSize(1)
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("eou:generic.dig_speed", "mining_ring", 0.2, "multiply_total")
        ).tag("curios:curios")
        .rarity("uncommon")

    e.create('eou:iron_ring')
        .displayName("铁戒指")
        .maxStackSize(1)
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.armor", "iron_ring", 1, "addition")
        ).tag("curios:curios")
        .rarity("common")

    e.create('eou:forgotten_bones')
        .displayName("被遗忘者之骨")
        .tooltip(Component.ofString("使你免疫失明").gray())
        .maxStackSize(1)
        .tag("curios:curios")
        .tag("eou:immune_blindness")
        .rarity("epic")
// 幸福戒指，饰品，可以让玩家佩戴后获得20%生命，攻击力减少20%
    e.create('eou:ring_of_happiness')
        .displayName("幸福戒指")
        .tooltip(Component.ofString("20250829如风传说七夕纪念").gray())
        .maxStackSize(1)
        .tag("curios:curios")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.max_health", "ring_of_happiness", 0.2, "multiply_base")
            .modifyAttribute("eou:generic.attack_damage", "ring_of_happiness", -0.2, "multiply_base"))
        .rarity("epic");
//灵木的灯笼，饰品，提升攻击速度，移动速度10%
    e.create('eou:lantern_of_spirit_wood')
        .displayName("灵木的灵魂灯笼")
        .tooltip(Component.ofString("灵木萨拉法专属武器").blue())
        .maxStackSize(1)
        .tag("curios:curios")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.movement_speed", "lantern_of_spirit_wood", 0.05, "multiply_base")
            .modifyAttribute("minecraft:generic.attack_speed", "lantern_of_spirit_wood", 0.05, "multiply_base"))
        .rarity("epic");
//暴食者之脑，HP提升5%，获得相当于10%最大生命的攻击力
    e.create('eou:brain_of_gluttony')
        .displayName("暴食者之脑")
        .tooltip(Component.ofString("暴食之罪者的大脑，使你获得10%最大生命值的攻击力").gold())
        .maxStackSize(1)
        .tag("curios:curios")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.max_health", "brain_of_gluttony", 0.05, "multiply_base")
            .modifyAttribute("eou:generic.attack_damage", "brain_of_gluttony", 0.1, "multiply_base"))
        .rarity("legendary");
//恶宴之杯,8%HP,"杀死一个目标时，为自己回复10~757点HP
    e.create('eou:cup_of_demonic_banquet')
        .displayName("恶宴之杯")
        .tooltip(Component.ofString("杀死一个目标时，为自己随机回复10~757点HP").gold())
        .maxStackSize(1)
        .tag("curios:curios")
        .tag("eou:cup_of_demonic_banquet")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.max_health", "cup_of_demonic_banquet", 0.08, "multiply_base")
            .modifyAttribute("eou:generic.attack_damage", "ring_of_happiness", -0.1, "multiply_base"))
        .rarity("legendary");
//嘉年华门票,铁魔法书的法力恢复+10%,HP提升5%
    e.create('eou:carnival_ticket')
        .displayName("嘉年华门票")
        .tooltip(Component.ofString("法力恢复+10%,HP提升5%").gold())
        .maxStackSize(1)
        .tag("curios:curios")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("irons_spellbooks:mana_regen", "carnival_ticket", 0.1, "multiply_base")
            .modifyAttribute("minecraft:generic.max_health", "carnival_ticket", 0.05, "multiply_base"))
        .rarity("legendary");
//数字暴涨设备，攻击力10%，护甲-5%，暴击几率+25%，可以佩戴多个
    e.create('eou:number_rising_device')
        .displayName("数字暴涨设备")
        .tooltip(Component.ofString("攻击力10%，护甲-5%，暴击几率+25%").gold())
        .maxStackSize(1)
        .tag("curios:curios")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("eou:generic.attack_damage", "number_rising_device", 0.1, "multiply_base")
            .modifyAttribute("minecraft:generic.armor", "number_rising_device", -0.05, "multiply_base")
            .modifyAttribute("eou:generic.crit_chance", "number_rising_device", 0.25, "addition"))
        .rarity("legendary");
//纯洁戒指	HP提升5%，每秒恢复1HP
    e.create('eou:ring_of_purity')
        .displayName("纯洁戒指")
        .tooltip(Component.ofString("HP提升5%，每秒恢复1HP.2025年93阅兵纪念").gold())
        .maxStackSize(1)
        .tag("curios:curios")
        .attachCapability(CuriosCapabilityBuilder.CURIOS.itemStack()
            .modifyAttribute("minecraft:generic.max_health", "ring_of_purity", 0.05, "multiply_base")
            .modifyAttribute("eou:generic.hp_regen", "ring_of_purity", 1, "addition"))
        .rarity("legendary");        

})

